home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / dskutil / ideinf10.zip / IDEINFO.H < prev    next >
Text File  |  1994-07-18  |  1KB  |  38 lines

  1. /* Hd controller regs. Ref: IBM AT Bios-listing */
  2. #define HD_DATA         0x0   /* _CTL when writing */
  3. #define HD_ERROR        0x1   /* see err-bits */
  4. #define HD_NSECTOR      0x2   /* nr of sectors to read/write */
  5. #define HD_SECTOR       0x3   /* starting sector */
  6. #define HD_LCYL         0x4   /* starting cylinder */
  7. #define HD_HCYL         0x5   /* high byte of starting cyl */
  8. #define HD_CURRENT      0x6   /* 101dhhhh , d=drive, hhhh=head */
  9. #define HD_STATUS       0x7   /* see status-bits */
  10. #define HD_PRECOMP HD_ERROR     /* same io address, read=error, write=precomp */
  11. #define HD_COMMAND HD_STATUS    /* same io address, read=status, write=cmd */
  12.  
  13. #define HD_CMD          0x206
  14.  
  15.  
  16. /* Bits of HD_STATUS */
  17. #define ERR_STAT        0x01
  18. #define INDEX_STAT      0x02
  19. #define ECC_STAT        0x04    /* Corrected error */
  20. #define DRQ_STAT        0x08
  21. #define SEEK_STAT       0x10
  22. #define WRERR_STAT      0x20
  23. #define READY_STAT      0x40
  24. #define BUSY_STAT       0x80
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.